<?php
require_once 'models/DAL/NewsletterDAO.php';
class NewsletterController extends Zend_Controller_Action {

    public function init() {
        
    }

    public function indexAction() {
        $params = $this->getAllParams();
        $dao = new Application_Model_DAO_Newsletter();
        $dao->setEmailNewsletter($params['email']);

        $model = new Application_Model_Newsletter();

        $model->cadastrar($dao);

        $this->_redirect(BASE_URL);
    }

}

